//index.js
//获取应用实例
const api = require('../../utils/api');
const app = getApp();
const constant = require('../../utils/constant');
const storage = require('../../utils/storage')
Page({
  data: {
    motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    //获取全局变量 导航栏的高度statusBarHeight
    statusBarHeight: app.globalData.statusBarHeight,
    // 胶囊
    jiaonang: app.globalData.jiaonang, 
    navigationHeight: app.globalData.navigationHeight,
    BASEURLWWW:constant.BASEURLWWW,
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    if (typeof this.getTabBar === 'function' && this.getTabBar()) {
      this.getTabBar().setData({
        selected: 0,
        isTabBarShow: true
      })
    }
  },
  /**
   * 页面相关事件处理函数--监听用户分享
   */
  onShareAppMessage: function () {
    return {
      title: '熊猫库存',
      path: '/pages/index/index'
    }
  },
  // 背景不滚动
  dontMove: function(){
    return;
  },
  onLoad: function () {
   
  },
  // 跳转
  jumpToUrl(e){
    let url = e.currentTarget.dataset.url
    console.info(url)
    wx.reLaunch({
      url,
    })
  }
})

